package com.xmtlxx.tms.domain.vo;

import com.xmtlxx.common.annotation.ExcelDictFormat;
import com.xmtlxx.common.convert.ExcelDictConvert;
import com.xmtlxx.oms.domain.vo.StagingVo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


/**
 * 订单明细视图对象 t_order_dtl
 *
 * @author xmtlxx
 * @date 2022-08-15
 */
@Data
@ApiModel("订单明细视图对象")
@ExcelIgnoreUnannotated
public class OrderDtlVo {

    private static final long serialVersionUID = 1L;

    /**
     * 订单明细ID
     */
    @ExcelProperty(value = "订单明细ID")
    @ApiModelProperty("订单明细ID")
    private String id;

    /**
     * 订单ID
     */
    @ExcelProperty(value = "订单ID")
    @ApiModelProperty("订单ID")
    private String orderId;

    /**
     * 物品编号
     */
    @ExcelProperty(value = "物品编号")
    @ApiModelProperty("物品编号")
    private String pno;

    /**
     * 物品名称
     */
    @ExcelProperty(value = "物品名称")
    @ApiModelProperty("物品名称")
    private String name;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    @ApiModelProperty("数量")
    private Long nums;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_common_status")
    @ApiModelProperty("状态")
    private String status;

    /**
     * 图片附件
     */
    @ExcelProperty(value = "图片附件")
    @ApiModelProperty("图片附件")
    private String pics;

    /**
     * 删除标识
     */
    @ExcelProperty(value = "删除标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_del_flag")
    @ApiModelProperty("删除标识")
    private String delFlag;

    /**
     * 箱号
     */
    @ApiModelProperty("箱号")
    private String boxNo;

    /**
     * 箱号id
     */
    @ApiModelProperty("箱号id")
    private String boxId;

    /**
     * 是否封箱
     */
    @ApiModelProperty("是否封箱")
    private String seal;

    private List<StagingVo> stagingVos;

    private Boolean isDtlShow;

    private String character;
}
